﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Text2ExcelTools
{
    public class MyClass
    {
        public struct Data
        {
            public string MAC_ADDRESS = "";
            public SignalData R2422 = new SignalData();
            public SignalData R2442 = new SignalData();
            public SignalData R2462 = new SignalData();


            public SignalData R2422_1 = new SignalData();
            public SignalData R2442_1 = new SignalData();
            public SignalData R2462_1 = new SignalData();

            public Signal5GData Signal5G = new Signal5GData();

            public Data()
            {
            }

            public object[] ToObjects()
            {
                return new object[] { MAC_ADDRESS,
                    R2422.RegisterValue,R2422.RegisterPower,
                    R2442.RegisterValue,R2442.RegisterPower,
                    R2462.RegisterValue,R2462.RegisterPower,
                    R2422_1.RegisterValue,R2422_1.RegisterPower,
                    R2442_1.RegisterValue,R2442_1.RegisterPower,
                    R2462_1.RegisterValue,R2462_1.RegisterPower,

                    Signal5G.R5190.RegisterValue,Signal5G.R5190.RegisterPower,
                    Signal5G.R5310.RegisterValue,Signal5G.R5310.RegisterPower,
                    Signal5G.R5510.RegisterValue,Signal5G.R5510.RegisterPower,
                    Signal5G.R5590.RegisterValue,Signal5G.R5590.RegisterPower,
                    Signal5G.R5670.RegisterValue,Signal5G.R5670.RegisterPower,
                    Signal5G.R5755.RegisterValue,Signal5G.R5755.RegisterPower,
                    Signal5G.R5835.RegisterValue,Signal5G.R5835.RegisterPower,


                    Signal5G.R5190_1.RegisterValue,Signal5G.R5190_1.RegisterPower,
                    Signal5G.R5310_1.RegisterValue,Signal5G.R5310_1.RegisterPower,
                    Signal5G.R5510_1.RegisterValue,Signal5G.R5510_1.RegisterPower,
                    Signal5G.R5590_1.RegisterValue,Signal5G.R5590_1.RegisterPower,
                    Signal5G.R5670_1.RegisterValue,Signal5G.R5670_1.RegisterPower,
                    Signal5G.R5755_1.RegisterValue,Signal5G.R5755_1.RegisterPower,
                    Signal5G.R5835_1.RegisterValue,Signal5G.R5835_1.RegisterPower,
                    Signal5G.R5835_1.RegisterXtalGain,Signal5G.R5835_1.RegisterXtalOffset,
                    };
            }
        }

        public struct SignalData
        {
            public int RegisterValue;
            public float RegisterPower;

            public int RegisterXtalGain;
            public float RegisterXtalOffset;
        }

        public struct Signal5GData
        {
            public SignalData R5190 = new SignalData();
            public SignalData R5310 = new SignalData();
            public SignalData R5510 = new SignalData();
            public SignalData R5590 = new SignalData();
            public SignalData R5670 = new SignalData();
            public SignalData R5755 = new SignalData();
            public SignalData R5835 = new SignalData();


            public SignalData R5190_1 = new SignalData();
            public SignalData R5310_1 = new SignalData();
            public SignalData R5510_1 = new SignalData();
            public SignalData R5590_1 = new SignalData();
            public SignalData R5670_1 = new SignalData();
            public SignalData R5755_1 = new SignalData();
            public SignalData R5835_1 = new SignalData();

            public Signal5GData()
            {
            }

        }
    }
}
